<%-- 
    Document   : agregar_usuario
    Created on : 04-07-2010, 11:22:18 AM
    Author     : Eduardo Cerritos
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>EME:Agregar Usuario</title>
        <link href="../css/estilos.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript"src="../js/utilidades.js"></script>
    </head>
    <body>
        <sec:authorize ifAnyGranted="ROLE_SYSTEM">
        <table  border="0" width="100%">
            <thead>
                <tr>
                    <th >
                        <h1><img src="../images/EME2.png" width="175px"></h1>
                    </th>
                    <th >
                        <h1><img src="../images/headers/admonUsuarios.png"></h1>
                    </th>

                </tr>
            </thead>
            <tbody>

                <tr>
                    <td width="200px" valign="top">
                        <div>
                            <jsp:include page="menu.jsp"/>
                        </div>
                    </td>
                    <td><center>
                            <h3>Nuevo Usuario Administrador</h3>
                            <form name="form1" action="../AddUsuario" method="post" onsubmit="return validaForm(this)">
                            <table style="padding: 25px;">
                                <tr>
                                    <td><label for="username">Nombre usuario:</label></td>
                                    <td><input type="text" name="username" onKeyUp="this.value=this.value.toUpperCase();"></td>
                                </tr>
                                <tr>
                                    <td><label for="pass">Contrase&ntilde;a usuario:</label></td>
                                    <td><input type="password" name="pass" onKeyUp="this.value=this.value.toUpperCase();"></td>
                                </tr>
                                <tr>
                                    <td>Activo:</td>
                                    <td colspan="2">
                                           <INPUT TYPE="RADIO" NAME="activo" VALUE="1" checked="true">
                                           Si
                                           <INPUT TYPE="RADIO" NAME="activo" VALUE="0">
                                           No
                                   </td>
                               </tr>
                                <tr>
                                    <td colspan="2"><button type="submit">Aceptar</button></td>
                                </tr>
                            </table>
                            </form>
                        </center>
                    </td>
                </tr>
            </tbody>
        </table>
                                    <div align="left">
                                    <jsp:include page="barrausuario.jsp"/>
                                    </div>
                                    </sec:authorize>
    </body>
</html>
